<template>
  <div>
    <!-- <Confirm></Confirm> -->
    <!-- <button @click="btn">anniu</button> -->
    <button @click="dialogVisible = true">dialog</button>
      <XtxDialog title="切换收货地址" v-model:visible="dialogVisible">
      对话框内容 
      <template #footer>
        <XtxButton @click="dialogVisible = false"  type="gray" style="margin-right:20px">取消</XtxButton>
        <XtxButton  @click="dialogVisible = false" type="primary">确认</XtxButton>
      </template>
    </XtxDialog>

  </div>
</template>

<script setup lang="ts">
import XtxButton from '@/components/button/index.vue'
import XtxDialog from '@/components/dialog/index.vue'
import { ref } from 'vue';
const dialogVisible = ref(false)
// import Confirm from '@/components/confirm/index';
// const btn = async () => {
  //   Confirm({ title: '提示', text: '文本' }).then(() => {
  //     console.log('成功');
  //     console.log('跳转首页');
  //   }).catch(() => {
  //     console.log('关闭啥也不干');
  //   })
  // const res = await Confirm({ title: '提示', text: '文本' }).catch(() => { })
  // console.log(res);
// }
</script>

<style scoped>
</style>